package com.situ.stl.mapper;

import com.situ.stl.entity.Reserve;
import com.situ.stl.vo.ReserveVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReserveMapper {
    List<Reserve> selectByMemberId(@Param("memberId") Integer memberId);


    List<Reserve> selectByCourse(@Param("courseId") int courseId);

    List<Reserve> select(Reserve reserve);

    int modify(Reserve reserve);

    Reserve selectByMemberIdAndCourseId(Reserve reserve);

    int insert(Reserve reserve);


    List<Reserve> selectByCourse1(@Param("courseId") int courseId);

    int batchUpdate(List<Reserve> reserves);




    List<ReserveVo> selectByMemberId1(@Param("memberId") Integer memberId);

    Reserve searchByCidAndMid(@Param("cid") Integer id,@Param("mid") Integer memberId);
}
